using System;
using System.Collections.Generic;
using System.Text;

namespace ZombieHigh2.AI
{
    public class PlayerBrain
    {
        private BaseState currentState = null;

        public PlayerBrain()
        {
            currentState = new IdleState(this);
        }

        public void SetState(BaseState newState)
        {
            this.currentState = newState;
        }

        public void Status()
        {
            System.Console.WriteLine(currentState.GetStatus());
        }

        public void StunTimeUp()
        {
            currentState.StunTimeUp();
        }
        public void IdleTimeUp()
        {
            currentState.IdleTimeUp();
        }
        public void Hit()
        {
            currentState.Hit();
        }
        public void HealthLessThanZero()
        {
            currentState.HealthLessThanZero();
        }
        public void ActorWithinRange()
        {
            currentState.ActorWithinRange();
        }
        public void ActorOutOfRange()
        {
            currentState.ActorOutOfRange();
        }

        public BaseState GetCurrentState()
        {
            return currentState;
        }
    }
}
